home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5956 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: canyon.sr.hp.com!rolando
  2. From: rolando@sr.hp.com (Rolando Ampuero)
  3. Newsgroups: comp.lang.c++
  4. Subject: new and 2-D Arrays?
  5. Date: 7 Feb 1996 17:12:05 GMT
  6. Organization: Hewlett Packard Sonoma County
  7. Message-ID: <4famh5$chp@canyon.sr.hp.com>
  8. NNTP-Posting-Host: romulus.sr.hp.com
  9. X-Newsreader: TIN [version 1.2 PL2.2]
  10.  
  11. Hello, This question was problably asked already, but as a newbie in the
  12. world of C++, this is one place I found that relates to this subject.
  13. According to several manuals that I have read I can declare a two dimensional
  14. array in this manner 
  15.  
  16. int *myptr = new int [8][8];
  17.  
  18. but when I tried to compile I get errors, is this not the correct way to do 
  19. it? Are the books wrong? (One of the books is Deitel pg 415).
  20.  
  21. If there is a FAQ site where I can go to, please let me know.
  22.  
  23. --
  24. ___________________________________________________________________________
  25. \___________________________________________________________________________
  26. \_         Rolando A. Ampuero            \_                               \_
  27. \_                                       \_     Voice (707) 577-2668      \_
  28. \_       Hewlett Packard Company         \_     Fax   (707) 577-4656      \_
  29. \_       Microwave Instruments Division  \_                               \_
  30. \_       1400 Fountaingrove Parkway      \_     E-mail:                   \_
  31. \_       Santa Rosa, CA 95403            \_     rolando@sr.hp.com         \_
  32. \________________________________________\________________________________\_
  33. \___________________________________________________________________________
  34.